package cn.chitanda.weather.data.network

import cn.chitanda.weather.data.place.*
import cn.chitanda.weather.data.weather.HeWeather
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

interface PlaceService {
    @GET("https://search.heweather.net/find")
    fun getCity(@Query("location") location: String, @Query("key") key: String): Call<CityList>

    @GET("https://search.heweather.net/top?number=20&group=cn")
    fun getTopCity(@Query("key") key: String): Call<CityList>
}